package HomeWork2;

public class AnonymousTest {
    public static void main(String[] args) {

        Inter i1=new Inter() {};
        Inter i2=new Inter() {};

        InterInter ii1=new InterInter() {
            @Override
            public void show() {
                System.out.println("showshow1");
            }
        };
        ii1.show();
        InterInter ii2=()-> System.out.println("showshow2");
        ii2.show();
    }
//    interface Inter{
//
//    }
//    interface InterInter{
//        public void show();
//    }
}

